@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --rd-bg: #f8fafc;
    --rd-card-bg: #ffffff;
    --rd-text-primary: #0f172a;
    --rd-text-secondary: #475569;
    --rd-text-muted: #64748b;
    --rd-border: #e2e8f0;
    --rd-border-light: #f1f5f9;

    --rd-accent: #2563eb;       /* Rich Blue */
    --rd-accent-hover: #1d4ed8;
    --rd-accent-light: #eff6ff;

    --rd-font: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* Download Mode */
.redirect-page-wrap.mode-download {
    --rd-accent: #059669;       /* Deep Green */
    --rd-accent-hover: #047857;
    --rd-accent-light: #ecfdf5;
}

.redirect-page-wrap * {
    box-sizing: border-box;
}

.redirect-page-wrap {
    font-family: var(--rd-font);
    background-color: var(--rd-bg);
    color: var(--rd-text-primary);
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem;
    line-height: 1.6;
}

.redirect-main {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Back Link */
.back-to-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 800;
    color: #1e293b;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: flex-start;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.back-to-post-link:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateX(-6px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
}

.back-to-post-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-to-post-link:hover i {
    transform: translateX(-3px);
}



/* Subscription Section */
.ai-tools-subscription-section {
    margin: 2.5rem 0 3.5rem;
    padding: 2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.sub-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.subscription-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.sub-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sub-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sub-btn-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.sub-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
}

.sub-desc {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

/* Platform Colors */
.sub-whatsapp .sub-btn-icon { background: rgba(37, 211, 102, 0.1); color: #25d366; }
.sub-telegram .sub-btn-icon { background: rgba(0, 136, 204, 0.1); color: #0088cc; }
.sub-youtube  .sub-btn-icon { background: rgba(255, 0, 0, 0.1); color: #ff0000; }

.sub-btn:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.15);
}

.sub-whatsapp:hover { border-color: #25d366; }
.sub-telegram:hover { border-color: #0088cc; }
.sub-youtube:hover  { border-color: #ff0000; }

@media (max-width: 768px) {
    .ai-tools-subscription-section {
        padding: 1.5rem;
    }
}



/* Ad Slots */
.ad-slot {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rd-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Premium Card - Logo Centric */
.premium-card {
    background: var(--rd-card-bg);
    border: 1px solid var(--rd-border);
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-hero-header {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--rd-border-light);
    gap: 2rem;
}

/* The Logo-Centric Timer Ring */
.logo-timer-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-timer-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.logo-timer-svg circle {
    fill: none;
    stroke-width: 6;
}

.logo-timer-svg .bg {
    stroke: var(--rd-border-light);
}

.logo-timer-svg .fg {
    stroke: var(--rd-accent);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.3));
}

.redirect-page-wrap.mode-download .logo-timer-svg .fg {
    filter: drop-shadow(0 0 4px rgba(5, 150, 105, 0.3));
}

/* The timer number badge */
.timer-badge {
    position: absolute;
    bottom: -10px;
    right: 15px;
    background: var(--rd-accent);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 3px solid #fff;
    z-index: 10;
}

.logo-inner {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--rd-border-light);
}

.tool-logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Titles underneath logo */
.hero-titles {
    max-width: 600px;
}

.hero-tool-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--rd-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-tool-status {
    font-size: 1.15rem;
    color: var(--rd-text-secondary);
    font-weight: 500;
}

/* Action Button */
.hero-actions {
    width: 100%;
    max-width: 320px;
    margin-top: 1rem;
}

.redirect-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    background: #f1f5f9;
    color: var(--rd-text-muted);
    border-radius: 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.btn-text-ready {
    display: none;
}

/* Active State for Redirection */
.redirect-action-btn.active {
    background: var(--rd-accent);
    color: #fff;
    pointer-events: auto;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transform: scale(1.05);
}

.redirect-page-wrap.mode-download .redirect-action-btn.active {
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.4);
}

.redirect-action-btn.active:hover {
    background: var(--rd-accent-hover);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}

.redirect-action-btn.active .btn-text-wait {
    display: none;
}

.redirect-action-btn.active .btn-text-ready {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Details Body */
.card-details-body {
    padding: 3.5rem 4rem;
    background: #fff;
}

.details-heading {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--rd-text-primary);
}

.brief-text {
    font-size: 1.2rem;
    color: var(--rd-text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-text {
    font-size: 1.1rem;
    color: var(--rd-text-muted);
    line-height: 1.8;
}

/* Similar Apps section style */
.similar-apps-section {
    margin-top: 1rem;
}

.similar-apps-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.similar-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.app-card-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--rd-border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-card-item:hover {
    border-color: var(--rd-accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    transform: translateY(-3px);
}

.app-thumb-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    margin-right: 1rem;
    background: var(--rd-bg);
    flex-shrink: 0;
}

.app-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rd-text-primary);
    margin-bottom: 0.25rem;
}

.app-views {
    font-size: 0.85rem;
    color: var(--rd-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .card-hero-header {
        padding: 3rem 1.5rem;
    }
    
    .hero-tool-title {
        font-size: 1.75rem;
    }
    
    .card-details-body {
        padding: 2.5rem 1.5rem;
    }
}